package com.softaria.spkiller.layers.classificator.impl;

import java.io.IOException;

import com.softaria.spkiller.metadata.ClassMetaData;

public class ImplementsInterfacePredicate implements ClassificationPredicate{

	private String interfaceName;
	private boolean directly;
	
	

	public ImplementsInterfacePredicate(String className, boolean directly) {
		super();
		this.interfaceName = className;
		this.directly = directly;
	}



	@Override
	public boolean matches(ClassMetaData metaData, ClassProbe classProbe)
			throws IOException {
		
		return classProbe.implementsInterface(metaData,interfaceName,directly);
			
	}

}
